package com.yix.jpademo.dao;


import com.yix.jpademo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface UserRepository extends JpaRepository<User,String>{
    User findByName(String name);
    User findByNameContainsAndAgeBetween(String name,Integer age,Integer ge2);
}
